Skip to content

ci(rehearsal): make the swarm server-binary build read-only and no-publish - #1868

Closed
EffortlessSteven wants to merge 3 commits into
mainfrom
fix/release-server-rehearsal-1726
Closed

EffortlessSteven wants to merge 3 commits into
mainfrom
fix/release-server-rehearsal-1726

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Jul 19, 2026 •

Copy link
Copy Markdown
Member

Status

Draft — authority correction required before merge.

#24 makes ripr-swarm the development authority and EffortlessMetrics/ripr the public release/distribution authority. It explicitly forbids GitHub Release, signing, publish workflows, and release secrets in swarm.

The current branch head still contains a v* trigger and a write-capable publication job targeting ${{ github.repository }}. That is not mergeable under #24 even though the branch also adds a useful no-publish path.

Intended scope

This PR is now owned by #1874 and #1882. Revise the workflow so swarm contains only a read-only artifact rehearsal:

  • rename/document it as a rehearsal;
  • workflow_dispatch or other non-publication trigger only;
  • build all five target archives;
  • assemble the manifest and SHA256SUMS;
  • retain the complete asset family as short-lived workflow artifacts;
  • remove push.tags: v*;
  • remove the publication job, contents: write, release-upload-assets, signing/attestation, and every release/publish secret path;
  • keep version/ref inputs out of inline shell expansion;
  • disable unnecessary checkout credential persistence;
  • emit a deterministic exact-SHA promotion handoff for the source repo.

Proof required on the revised exact head

  • cargo xtask check-workflows
  • cargo xtask check-doc-index
  • cargo xtask check-process-policy
  • cargo xtask check-network-policy
  • source-of-truth and security checks
  • static negative proof that no tag-triggered publication, write permission, release upload, signing, registry, marketplace, or cross-repo token path remains

The operational run/receipt follows in #1875. Source-repo tag trigger and provenance are coordinated by #1876/#1877.

Claim boundary

After revision and merge, this PR may establish only a swarm-owned no-publish build/assembly rehearsal. It must not claim or contain public release authority.

Refs #24 #1703 #1726 #1874 #1875 #1882

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Jul 19, 2026 •

Copy link
Copy Markdown

Review Change Stack

Walkthrough

The release workflow now supports manual rehearsal or publication, uses scoped permissions and ref-based concurrency, retains build artifacts for seven days, resolves versions consistently, and documents the updated release paths.

Changes

Server release controls

Layer / File(s) Summary
Workflow dispatch and permissions
.github/workflows/release-server-binaries.yml
Adds a default-disabled publish input, read-only workflow contents permissions, and ref-based concurrency without cancellation.
Release assembly and publication flow
.github/workflows/release-server-binaries.yml, docs/RELEASE_BINARIES.md
Updates version resolution, retains target and assembled artifacts for seven days, gates publication, scopes write permission to the publish job, and documents rehearsal versus publication runs.

Estimated code review effort: 2 (Simple) | ~10 minutes

Sequence Diagram(s)

sequenceDiagram
  participant GitHubActions
  participant BuildJob
  participant ManifestJob
  participant GitHubRelease
  GitHubActions->>BuildJob: Resolve version and build server archives
  BuildJob->>GitHubActions: Upload target artifacts
  GitHubActions->>ManifestJob: Assemble manifest and release assets
  ManifestJob->>GitHubActions: Upload assembled assets
  GitHubActions->>GitHubRelease: Publish when push or publish=true
Loading

Poem

I’m a rabbit in the release queue,
Building bundles bright and new.
Rehearse them first, then let them fly,
With seven days where artifacts lie.
Tags may hop to publish too—
Thump, thump, the workflow’s through!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers intent but omits most required template sections like source links, scope classification, proof, rollback, and gates. Fill in the template sections, especially Swarm/Source Boundary, Source-of-truth Links, Scope, Proof, Rollback, and CI/Gates details.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title accurately summarizes the workflow change to a read-only, no-publish rehearsal.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/release-server-rehearsal-1726

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/release-server-binaries.yml:
- Line 65: Update the release commands using the version expression in the
workflow steps around cargo xtask release-server-archive so the resolved version
is assigned through the step environment and referenced via the shell
environment variable, rather than interpolated inline. Apply this consistently
to all three sites, including the commands near lines 65, 90, and 120, while
preserving the existing fallback from inputs.version to github.ref_name.
- Line 107: Update the publish job’s actions/checkout@v6 step to disable
persisted Git credentials by setting persist-credentials to false, while leaving
the existing checkout behavior unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: b072867a-9945-4e11-bcd9-21c55e4a68ca

📥 Commits

Reviewing files that changed from the base of the PR and between bbe7cbc and ff0f6c7.

📒 Files selected for processing (2)
  • .github/workflows/release-server-binaries.yml
  • docs/RELEASE_BINARIES.md
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • EffortlessMetrics/ripr (auto-detected)
  • EffortlessMetrics/perl-lsp (auto-detected)
  • EffortlessMetrics/unsafe-review (auto-detected)
  • EffortlessMetrics/ub-review (auto-detected)

@codecov

codecov Bot commented Jul 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Member Author

Issue ownership update

This PR is now owned by #1874: safe no-publish workflow structure and least-privilege publication separation.

Dependent proof remains:

A merge of this PR does not close #1726, #1703, or #1444.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Closing as wrong-scope rather than merging: this draft's own body declares the head unmergeable under #24 — it keeps the v* tag publish path and adds a write-capable publish job, which is the opposite of the read-only rehearsal contract. The correct work is tracked in #1874 (make the swarm server-binary workflow a read-only no-publish rehearsal, PR A) and #1882 (move tag-triggered publication to the source repo), both open. A fresh PR against #1874 should start from current main rather than this branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant